package com.zyy.datasourcemanagement.controller;

import com.zyy.datasourcemanagement.aspect.annotation.MyDataSource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("test")
@RestController
public class TestController {

    @MyDataSource
    @RequestMapping(method = RequestMethod.GET)
    public String getString(String name,String password){
        return name;
    }
}
